import type { RouteRecordRaw } from 'vue-router';
import RouterView from '@/views/Layout/routerView/index.vue';
// import { t } from '@/hooks/useI18n';

const moduleName = 'OrangMange';

const routes: Array<RouteRecordRaw> = [
  {
    path: '/OrangMange',
    name: moduleName,
    component: RouterView,
	meta: {
	  title: '组织架构',
	  icon: 'icon-yibiaopan',
	},
	children:[
		{
		  path: '/OrangMange-depMange',
		  name: 'OrangMange-depMange',
		  meta: {
		    title: '部门管理',
		    icon: 'icon-zhuomian',
		  },
		  component: () => import('@/views/OrangMange/depMange/index.vue'),
		},
		{
		  path: '/OrangMange-peopleMange',
		  name: 'OrangMange-peopleMange',
		  meta: {
		    title: '人员管理',
		    icon: 'icon-zhuomian',
		  },
		  component: () => import('@/views/OrangMange/peopleMange/index.vue'),
		},
		{
		  path: '/OrangMange-roleMange',
		  name: 'OrangMange-roleMange',
		  meta: {
		    title: '角色权限',
		    icon: 'icon-zhuomian',
		  },
		  component: () => import('@/views/OrangMange/roleMange/index.vue'),
		},
	]
	// component: () => import('@/views/OrangMange/index.vue'),
  },
];

export default routes;
